﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace RoutingDemo.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            string keys = "";
            foreach (var key in RouteData.Values)
            {
                keys += key.Key + " : " + key.Value + "<br>";
            }
            ViewData["Message"] = keys;


            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
